const sever = "http://139.199.158.128/proDataAcq";
const photosrc = "http://139.199.158.128";
const datashang = "http://api.datashang.com";
const datashangkey = "97a179fdf01ddf1f4c05210eb102721a";
const db = openDatabase('cache', '1.0', 'Save Local Photo', 20 * 1024 * 1024);

function openWin(html) {
	mui.openWindow({
		url: html,
		id: html,
	});
}

function back() {
	var old_back = mui.back;
	mui.back = function() {
		var btn = ["确定", "取消"];
		mui.confirm('确认关闭当前窗口？', 'Hello MUI', btn, function(e) {
			if(e.index == 0) {
				//执行mui封装好的窗口关闭逻辑；
				old_back();
			}
		});
	}
}